package com.jy.adscm.zltx.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2018-11-02
 */
public class QsApprovalRecord implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("fileId")
    private Integer fileId;
    @TableField("updateId")
    private Integer updateId;
    @TableField("deptId")
    private String deptId;
    @TableField("approvaler")
    private String approvaler;
    @TableField("isApproval")
    private String isApproval;
    @TableField("approvalAdvice")
    private String approvalAdvice;
    @TableField("approvalTime")
     private Date approvalTime;
    @TableField(exist = false)
    private String deptName;
    @TableField(exist = false)
    private String approvalerName;

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getApprovalerName() {
        return approvalerName;
    }

    public void setApprovalerName(String approvalerName) {
        this.approvalerName = approvalerName;
    }

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getApprovalTime() {
        return approvalTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setApprovalTime(Date approvalTime) {
        this.approvalTime = approvalTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getFileId() {
        return fileId;
    }

    public void setFileId(Integer fileId) {
        this.fileId = fileId;
    }

    public Integer getUpdateId() {
        return updateId;
    }

    public void setUpdateId(Integer updateId) {
        this.updateId = updateId;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getApprovaler() {
        return approvaler;
    }

    public void setApprovaler(String approvaler) {
        this.approvaler = approvaler;
    }

    public String getIsApproval() {
        return isApproval;
    }

    public void setIsApproval(String isApproval) {
        this.isApproval = isApproval;
    }

    public String getApprovalAdvice() {
        return approvalAdvice;
    }

    public void setApprovalAdvice(String approvalAdvice) {
        this.approvalAdvice = approvalAdvice;
    }

    @Override
    public String toString() {
        return "QsApprovalRecord{" +
        "id=" + id +
        ", fileId=" + fileId +
        ", updateId=" + updateId +
        ", deptId=" + deptId +
        ", approvaler=" + approvaler +
        ", isApproval=" + isApproval +
        ", approvalAdvice=" + approvalAdvice +
        "}";
    }
}
